package com.news.service.impl;

import javax.annotation.Resource;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

import com.news.entity.Emp;
import com.news.service.EmpService;

@Service
public class EmpServiceImpl implements EmpService{

	@Resource
	private JdbcTemplate jdbcTemplate;
	@Override
	public int save(Emp emp) {
		System.out.println("EmpServiceImpl==="+emp);
		/*
		String sql="insert into emp(....)values(???)";
		Object args[]={emp.getEname(),emp.getJob()};
		int result = jdbcTemplate.update(sql, args);
		*/
		return 0;
	}
	public JdbcTemplate getJdbcTemplate() {
		return jdbcTemplate;
	}
	public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
		this.jdbcTemplate = jdbcTemplate;
	}
	

	
}
